﻿using System;
using System.Web;
using Ornament.Web.Mvc;

namespace Ornament.Web.ModelBinder
{
    public class RoleBinder : BaseModelBinder
    {
        protected override object RequestId(HttpRequestBase request)
        {
            if (request["Id"] != null)
                return new Guid(request["Id"]);
            return null;
        }
    }
}